package com.kunlun.basedata.service;

import com.kunlun.basedata.model.UserModel;
import com.kunlun.common.model.Page;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

public interface IUserService {

    Page getAllUser(UserModel userModel, int currentPage, int pageSize) throws Exception;

    void addUser(UserModel user) throws Exception;

    void updateUser(UserModel user) throws Exception;

    void batchDeleteUser(List<String> ids) throws Exception;

    UserModel getUserByUserName(String userName) throws Exception;

    void downloadUsers(HttpServletRequest request, HttpServletResponse response) throws Exception;

    UserModel getUserById(String userId) throws Exception;

    List<UserModel> selectUsers() throws Exception;
}
